% second TEST script 
plot(cos(linspace(0, 7, 1000)), 'r--', 'LineWidth', 3);
hold on;
plot(sin(linspace(0, 10, 1000)), 'b:', 'LineWidth', 4);

title('test a plot');
xlabel('x');
ylabel('y');
set(gcf, 'Position', [100 100 800 600]);
saveas(gcf, 'my1.png');

% -q<val> where <val> is a number from 0-100, will set the level of lossy
% image compression: from high compression (0) to low compression/high
% quality (100); works in pdf, eps format 
export_fig my2.pdf -q101 


% -nocrop  when prefer the figure to be uncropped, and instead have the same
% appearance 
export_fig my3.pdf -nocrop 

